<?
require("inc/conn637.php");
$ID=$_POST["ID"];
$title=$_POST["title"];
$author=$_POST["author"];
$content=$_POST["content"];
$sex=$_POST["sex"];
$email=$_POST["Email"];
$ip=$_SERVER['REMOTE_ADDR'];
$addtime=date("Y-m-d H:i:s");
$sql="update lyb set title='$title',author='$author',content='$content',sex='$sex',IP='$ip',addtime='$addtime',Email='$email' where ID=$ID";
$up=mysql_query($sql) or die("执行失败");
if($up)
header("location:lyb_admin637.php");
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
</head>

<body>
</body>
</html>